package com.cddx.logistics.mapper;

import com.cddx.logistics.domain.dto.QueryDTO;
import com.cddx.logistics.domain.pojo.Department;
import com.cddx.logistics.domain.vo.SelectObject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DepartmentMapper {
    int addDepartment(Department department);

    int updateDepartment(Department department);

    int deleteDepartment(Integer id);

    List<Department> queryPage(QueryDTO queryDTO);

    List<SelectObject> queryAll();

    int deleteIds(Integer[] ids);
}
